import request from '@/utils/request'

// 查询医师文章列表
export function listDoctorArticle(query) {
  return request({
    url: '/business/doctorArticle/list',
    method: 'get',
    params: query
  })
}

// 查询医师文章详细
export function getDoctorArticle(id) {
  return request({
    url: '/business/doctorArticle/' + id,
    method: 'get'
  })
}

// 新增医师文章
export function addDoctorArticle(data) {
  return request({
    url: '/business/doctorArticle',
    method: 'post',
    data: data
  })
}

// 修改医师文章
export function updateDoctorArticle(data) {
  return request({
    url: '/business/doctorArticle',
    method: 'put',
    data: data
  })
}

// 删除医师文章
export function delDoctorArticle(id) {
  return request({
    url: '/business/doctorArticle/' + id,
    method: 'delete'
  })
}
